package com.kly.cashmall.module.mine.adapter;

import androidx.annotation.NonNull;

import com.chad.library.adapter.base.BaseQuickAdapter;
import com.chad.library.adapter.base.viewholder.BaseViewHolder;
import com.kly.cashmall.R;
import com.kly.cashmall.bean.MessagesInfoBean;

/**
 * author :
 * date   : 2019-12-30 11:04
 * desc   :
 */
public class MessageAdapter extends BaseQuickAdapter<MessagesInfoBean, BaseViewHolder> {

    public MessageAdapter() {
        super(R.layout.item_message_detail);
    }


    @Override
    protected void convert(@NonNull BaseViewHolder holder, MessagesInfoBean messagesBean) {
        holder.setText(R.id.item_title,messagesBean.getTitle());
        holder.setText(R.id.item_date,messagesBean.getGmtCreate());
        holder.setText(R.id.item_content,messagesBean.getContent());
    }
}
